package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.WasteWaterMapper;
import com.isdepci.project.gasEmission.domain.WasteWater;
import com.isdepci.project.gasEmission.service.IWasteWaterService;

/**
 * 废弃物和水Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class WasteWaterServiceImpl implements IWasteWaterService
{
    @Autowired
    private WasteWaterMapper wasteWaterMapper;

    /**
     * 查询废弃物和水
     */
    @Override
    public WasteWater selectWasteWaterById(Long id)
    {
        return wasteWaterMapper.selectWasteWaterById(id);
    }

    /**
     * 查询废弃物和水列表
     */
    @Override
    public List<WasteWater> selectWasteWaterList(WasteWater wasteWater)
    {
        return wasteWaterMapper.selectWasteWaterList(wasteWater);
    }

    /**
     * 新增废弃物和水
     */
    @Override
    public int insertWasteWater(WasteWater wasteWater)
    {
        return wasteWaterMapper.insertWasteWater(wasteWater);
    }

    /**
     * 修改废弃物和水
     */
    @Override
    public int updateWasteWater(WasteWater wasteWater)
    {
        return wasteWaterMapper.updateWasteWater(wasteWater);
    }

    /**
     * 批量删除废弃物和水
     */
    @Override
    public int deleteWasteWaterByIds(Long[] ids)
    {
        return wasteWaterMapper.deleteWasteWaterByIds(ids);
    }

    /**
     * 删除废弃物和水信息
     */
    @Override
    public int deleteWasteWaterById(Long id)
    {
        return wasteWaterMapper.deleteWasteWaterById(id);
    }
}
